package com.mindskip.xzs.repository;

import com.mindskip.xzs.domain.Video;
import com.mindskip.xzs.viewmodel.admin.education.VideoPageRequestVM;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author changjiang
 * @Title:
 * @Package
 * @Description: 视频添加
 */
@Mapper
public interface VideoMapper extends BaseMapper<Video> {

    List<Video> selectByVideo(Video video);


    List<Video> videoPage(VideoPageRequestVM videoPageRequestVM);



    List<Video> videoPage2(VideoPageRequestVM videoPageRequestVM);


    int deleteByPrimaryKey(Long id);


    @Override
    int insertSelective(Video record);

    @Override
    int updateByPrimaryKeySelective(Video record);

    @Override
    int updateByPrimaryKey(Video record);

    /**
     *
     * @param video
     * @return
     */
    List<Video> getVideoPaper(Video video);


    /**
     * 根据questtionId查状态
     * @param video
     * @return
     */
    Video getVideoByTag(Video video);



    List<Video> videoPage2List(Video video);





}
